package com.bt.service;

import com.bt.entity.User;
import com.github.pagehelper.PageInfo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface UserService {
    User login(String name, String password);
    List<User> getUserList();
    User selectUserById(Integer id);
    int delUser(Integer id);
    int updateUser(User user);
    int addUser(User user);
    //根据用户名查询
    User findByUsername(String username);
    int saveUser(User user); //保存用户信息

    //根据用户名、性别（精确匹配）、地址查询
    PageInfo<User> findByCondition(String name, String sex, String address, Integer pageNum, Integer pageSize);

}
